class CustomExpenseData {
  final List<int> ids;
  final String paidTo;
  final String orderType;
  final String number;
  final String date;
  final num totalAmount;

  const CustomExpenseData(
      {this.ids,
      this.paidTo,
      this.orderType,
      this.date,
      this.number,
      this.totalAmount});

  factory CustomExpenseData.fromJson(Map map) => CustomExpenseData(
        ids: map['ids'],
        paidTo: map['paidTo'],
        orderType: map['orderType'],
        date: map['date'],
        number: map['number'],
        totalAmount: map['totalAmount'],
      );

  Map toJson() {
    return {
      'ids': ids,
      'paidTo': paidTo,
      'orderType': orderType,
      'date': date,
      'number': number,
      'totalAmount': totalAmount,
    };
  }
}
